package com.css.zfzx.sjcj.modules.qhrisklevelmappointprovince.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhrisklevelmappointprovince.repository.entity.QhRiskLevelMapPointProvinceEntity;
import com.css.zfzx.sjcj.modules.qhrisklevelmappointprovince.viewobjects.QhRiskLevelMapPointQueryParams;

import java.util.List;

/**
 * @author andy
 * @date 2021-01-26
 */

public interface QhRiskLevelMapPointProvinceService {

    public JSONObject queryQhRiskLevelMaps(QhRiskLevelMapPointQueryParams queryParams, int curPage, int pageSize);

    public JSONObject queryQhRiskLevelMapsByFileName(QhRiskLevelMapPointQueryParams queryParams, int curPage, int pageSize, String sort, String order);

    public QhRiskLevelMapPointProvinceEntity getQhRiskLevelMap(String id);

    public QhRiskLevelMapPointProvinceEntity saveQhRiskLevelMap(QhRiskLevelMapPointProvinceEntity qhSiteClassResult);

    public QhRiskLevelMapPointProvinceEntity updateQhRiskLevelMap(QhRiskLevelMapPointProvinceEntity qhSiteClassResult);

    public void deleteQhRiskLevelMaps(List<String> ids);

    public JSONObject getQhRiskLevelMaps(QhRiskLevelMapPointQueryParams queryParams);

    public JSONObject searchQhRiskLevelMaps(QhRiskLevelMapPointQueryParams queryParams);

    public void saveOrUpdate(QhRiskLevelMapPointProvinceEntity scrEntity);

    public String judgeFileParams(String[] datas);

    public void deleteQhRiskLevelMapsByFileName(List<String> fileNames) throws Exception;

    public int lookUpQhRiskLevelMaps(QhRiskLevelMapPointQueryParams queryParams,boolean isNewTable);

    //校验
    public String checkSHPFiles(String filePath, String province, String city, String area);

    //保存
    public String newImportShapeFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);

    //校验GDB文件
    public String checkGDBFiles(String filePath, String province, String city, String area);

    //保存GDB文件
    public String newImportGDBFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);
}
